import hasRole from './permission/hasRole'
import hasPermi from './permission/hasPermi'
import vAdaptive from './v-adaptive'
// 剪贴板
import clipboard from './module/clipboard'

const install = function (Vue) {
    Vue.directive('hasRole', hasRole)
    Vue.directive('hasPermi', hasPermi)
    Vue.directive('adaptive', vAdaptive)
    Vue.directive('clipboard', clipboard)
}

if (window.Vue) {
    window['hasRole'] = hasRole
    window['hasPermi'] = hasPermi
    Vue.use(install); // eslint-disable-line
}

export default install
